package main

import (
	"fmt"
)

func main() {
_Start:
	fmt.Printf("请输入华氏度值：")
	var fVal, cVal float64
	_, err := fmt.Scanf("%g", &fVal)
	if (err != nil) {
		goto _Start
	}
	cVal = FToC(fVal)
	fmt.Printf("摄氏度值为：%g", cVal)
}

//华氏度转摄氏度
func FToC(fVal float64) float64 {
	return (fVal - 32.0) * 5 / 9
}
